using System.ComponentModel.DataAnnotations;

namespace FServer.Core.Entities;

public class GameConfig
{
    public Guid Id { get; set; }
    
    [Required]
    [MaxLength(100)]
    public string ConfigKey { get; set; } = string.Empty;
    
    [Required]
    public string ConfigValue { get; set; } = string.Empty;
    
    [Required]
    [MaxLength(20)]
    public string ValueType { get; set; } = string.Empty;
    
    [Required]
    [MaxLength(50)]
    public string Category { get; set; } = string.Empty;
    
    public string? Description { get; set; }
    
    public bool IsActive { get; set; } = true;
    
    public Guid? CreatedBy { get; set; }
    
    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
    
    public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
